import time
from multiprocessing import Process

def speck():
    print('speck')
    time.sleep(1)
if __name__ == '__main__':
    t = time.time()
    l = []
    for i in range(5):
        # 创建了 process对象
        p = Process(target=speck)
        p.start()
        l.append(p)
        # 主程序等待子进程结束后再结束
    for i in l:
        i.join()  # 主程序等待子进程结束后再结束
    print("over")
    print(time.time() - t)